package com.tbit.uqbike.object.pojo.vo;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 车辆运营看板总览（顶部）
 *
 * @Author:BUGTian
 * @DATE: 2022/11/2
 */
@Data
@Accessors(chain = true)
public class VehicleOperationSumVO {

    /**
     * 车辆总数
     */
    private long totalVehicle;
    /**
     * 投放车辆总数
     */
    private long putInTotalVehicle;
    /**
     * 未投放车辆总数
     */
    private long unPutInTotalVehicle;
    /**
     * 可运营车辆总数
     */
    private long operationalVehicles;
    /**
     * 不可运营车辆总数
     */
    private long unOperationalVehicles;
    /**
     * 车均订单数
     */
    private double numberOfCarsOnOrder;
    /**
     * 车均收入
     */
    private double carsWereIncome;

    /**
     * 计算不可运营车辆总数和未投放车辆总数
     */
    public void compute() {
        unPutInTotalVehicle = totalVehicle - putInTotalVehicle;
        unOperationalVehicles = putInTotalVehicle - operationalVehicles;
    }
}
